<admintpl file="header" />
<style type="text/css">
	body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}
</style>
</head>

<body>

<div id="allmap">
<div class="" id="loading" style="width:100%;text-align: center;"><img src="__PUBLIC__/images/loading.gif" /></div>
</div>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=OkM4ci06ibVrimvizgsIWv0sjASIa7BK&s=1"></script>
<script type="text/javascript">

    // 百度地图API功能
    var map = new BMap.Map("allmap");
    var point = new BMap.Point({$route.shippingLat}, {$route.shippingLng});
    map.centerAndZoom(point, 15);
    var marker = new BMap.Marker(point);  // 创建标注
    map.addOverlay(marker);               // 将标注添加到地图中
    marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
    map.addEventListener("tilesloaded",function(){
    	document.getElementById("loading").style.display="none";
    });
</script>
</body>
</html>